package cn.edu.nchu.fragmentdemo.bean;

import android.content.Context;

import com.j256.ormlite.dao.ForeignCollection;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.misc.BaseDaoEnabled;
import com.j256.ormlite.table.DatabaseTable;

import cn.edu.nchu.fragmentdemo.db.dao.MarkerSetDao;

/**
 * @author Wendy
 * @time 2019/12/22
 * @Email ${EMAIL}
 */
@DatabaseTable(tableName = "marker_set")
public class MarkerSet extends BaseDaoEnabled {

    @DatabaseField(columnName = "id", generatedId = true)
    private Integer id;
    @DatabaseField(columnName = "uk")
    private String uk;
    @DatabaseField(columnName = "set_name")
    private String setName;
    //    @ForeignCollectionField(eager=false)
    private ForeignCollection<MarkerSet> markerSets;

    public MarkerSet() {
    }

    public MarkerSet(Context context) {
        setDao(MarkerSetDao.getmarkerSetDao(context));
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUk() {
        return uk;
    }

    public void setUk(String uk) {
        this.uk = uk;
    }

    public String getSetName() {
        return setName;
    }

    public void setSetName(String setName) {
        this.setName = setName;
    }

    public ForeignCollection<MarkerSet> getMarkerSets() {
        return markerSets;
    }

    public void setMarkerSets(ForeignCollection<MarkerSet> markerSets) {
        this.markerSets = markerSets;
    }
}
